The Dreamweaver JavaScript API > Layout view functions > dom.makeCellWidthsConsistent()

 

dreamweaver.getClipboardText()

Availability

Dreamweaver 3.0

Description

Gets all the text that is stored on the clipboard.

Arguments

[bAsText]

[bAsText] is a Boolean value that specifies whether or not the clipboard content is retrieved as text. If bAsText is true, the clipboard content is retrieved as text. If bAsText is false, the behavior is the same as in Dreamweaver 3. This argument defaults to false.

Returns

A string containing the contents of the clipboard, if the clipboard contains text (which may be HTML); otherwise, nothing.

Enabler

None.

Example

If dw.getClipboardText() returns "text <b>bold</b> text", then dw.getClipboardText(true) returns "text bold text".